import request from "../utils/request.js";
import {multipleDelete} from "../utils/common.js"

export function remove(row){
    return request.delete("/blog/delete",{
        params: {
            ids: row.id
        }
    })
}

export function multipleRemove(row){
    return request.delete("/blog/delete",{
        params: {
            ids: multipleDelete(row)
        }
    })
}

export function top(id){
    return request.get("/blog/top/" + id)
}

export function changePublish(id){
    return request.get("/blog/changePublish/" + id)
}

export function changeComment(id){
    return request.get("/blog/changeComment/" + id)
}
